<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('dbplayer/petnew/flexigrid') ?>',
                    colModel: [
                        {display: '<?= translate('ID') ?>', name: '_id', width: '120', process: formatSearch},
                        {display: '<?= translate('DBPLAYER_HEROS_ID') ?>', name: 'id', width: '80', process: formatSearch},
                        {display: '<?= translate('DBPLAYER_HEROS_LEVEL') ?>', name: 'level', width: '80', process: formatSearch},
                        {display: '<?= translate('DBPLAYER_HEROS_CUREXP')?>', name: 'curexp', width: '80'},
                        {display: '<?= translate('DBPLAYER_HEROS_QUALITY')?>', name: 'quality', width: '80'},
                        {display: '<?= translate('DBPLAYER_HEROS_BREAKLEVEL') ?>', name: 'breaklevel',width:'80'},
                        {display: '<?= translate('DBPLAYER_HEROS_CURTURES') ?>', name: 'cultures',width:'80'},
                        {display: '<?= translate('DBPLAYER_HEROS_CURTURESCOST') ?>', name: 'culturescost',width:'80'},
                        {display: '<?= translate('DBPLAYER_HEROS_DIAOWENQUALITY') ?>', name: 'diaowenquality',width:'80'},
                        {display: '<?= translate('DBPLAYER_HEROS_DESTENYSTATE') ?>', name: 'destinystate',width:'80'},
                        {display: '<?= translate('DBPLAYER_HEROS_DESTENYTIME') ?>', name: 'destinytime',width:'80'},
                        {display: '<?= translate('DBPLAYER_HEROS_WAKELEVEL') ?>', name: 'wakelevel',width:'80'},
                        {display: '<?= translate('DBPLAYER_HEROS_WAKEITEM') ?>', name: 'wakeitem',width:'80'},
                        {display: '<?= translate('DBPLAYER_HEROS_GODLEVEL') ?>', name: 'godlevel',width:'80'},
//                        {display: '<?//= translate('DBPLAYER_ADVANCE') ?>//', name: 'advance',width:'120'},
//                        {display: '<?//= translate('DBPLAYER_ISFIGHT') ?>//', name: 'isfight',width:'150'},
                        
                    ],
                    buttons: [
                              {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},  
                    ],
                    searchitems:[{display:'<?= translate('ID') ?>',name:'_id'}],
                }));
               
            });    
        </script>
    </body>
</html>